﻿<%@ Page Title="" Language="C#" MasterPageFile="~/VSFuncionario.Master" AutoEventWireup="true" CodeBehind="NoticiaConsulta.aspx.cs" Inherits="Presentation.NoticiaConsulta" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <asp:HyperLink ID="HyperLink1" runat="server" 
            NavigateUrl="~/NoticiaCadastro.aspx">Cadastrar Notícia</asp:HyperLink>
        <br />
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="ID" DataSourceID="EntityDataSource1" 
            ForeColor="#333333" GridLines="None" 
            onselectedindexchanged="GridView1_SelectedIndexChanged">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                
                <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" 
                    SortExpression="ID" />
                <asp:BoundField DataField="Titulo" HeaderText="Titulo" 
                    SortExpression="Titulo" />
                <asp:BoundField DataField="Corpo" HeaderText="Corpo" SortExpression="Corpo" />
                <asp:CheckBoxField DataField="STDestaque" HeaderText="STDestaque" 
                    SortExpression="STDestaque" />
                <asp:BoundField DataField="DTInicial" 
                    HeaderText="DTInicial" SortExpression="DTInicial" />
                <asp:BoundField DataField="DTFinal" 
                    HeaderText="DTFinal" SortExpression="DTFinal" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
            ConnectionString="name=DBUCNEntities" DefaultContainerName="DBUCNEntities" 
            EnableDelete="True" EnableFlattening="False" EntitySetName="TBNoticias" 
            EnableInsert="True" EnableUpdate="True">
        </asp:EntityDataSource>
    </p>
</asp:Content>
